<%
    Users user = Trader.getUser(request.getParameter("uid"));
	wstrader.task.trade.reports.Position task = user.trade.reports.position;

	task.getRequest().setRequest(request);
	task.getResponse().setResponse(response,out);
	
	if (!user.Authenticated()) {
		response.sendRedirect("logon.jsp");
		return;
	}
	((Tasks)task.getOwner()).clearFocus();
	task.setFocus(true);	

	long focused_id = task.doTask();
	
	int dloop=1;
	float ufp_Month1 = 0;
	float ufp_Month2 = 0;
	float ufp_Month3 = 0;
	float ufp_Month4 = 0;
	float ufp_Month5 = 0;
		
	float uf_stk = 0;
	
	float ufs_Month1 = 0;
	float ufs_Month2 = 0;
	float ufs_Month3 = 0;
	float ufs_Month4 = 0;
	float ufs_Month5 = 0;

	float uftbf_Month1 = 0;
	float uftbf_Month2 = 0;
	float uftbf_Month3 = 0;
	float uftbf_Month4 = 0;
	float uftbf_Month5 = 0;
		
	float fp_Month1 = 0;
	float fp_Month2 = 0;
	float fp_Month3 = 0;
	float fp_Month4 = 0;
	float fp_Month5 = 0;
	
	float f_stk=0;
	
	float fs_Month1 = 0;
	float fs_Month2 = 0;
	float fs_Month3 = 0;
	float fs_Month4 = 0;
	float fs_Month5 = 0;

	float npr_Month1 = 0;
	float npr_Month2 = 0;
	float npr_Month3 = 0;
	float npr_Month4 = 0;
	float npr_Month5 = 0;
	
	float ndf_Month1 = 0;
	float ndf_Month2 = 0;
	float ndf_Month3 = 0;
	float ndf_Month4 = 0;
	float ndf_Month5 = 0;
	
	float fup_Month1 = 0;
	float fup_Month2 = 0;
	float fup_Month3 = 0;
	float fup_Month4 = 0;
	float fup_Month5 = 0;
	
	task.updatePendingReceiveField();
	task.updateInvoiceField();
	ResultSet rs   = task.GetTerminalMthList("NYC");
	rs.beforeFirst();
	
	while (rs.next())
	{
		if (dloop==1) ufp_Month1 = task.getSumPositionReport("pending_unfix_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"NYC","<=","P");
		if (dloop==2) ufp_Month2 = task.getSumPositionReport("pending_unfix_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"NYC","=","P");
		if (dloop==3) ufp_Month3 = task.getSumPositionReport("pending_unfix_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"NYC","=","P");
		if (dloop==4) ufp_Month4 = task.getSumPositionReport("pending_unfix_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"NYC","=","P");
		if (dloop==5) ufp_Month5 = task.getSumPositionReport("pending_unfix_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"NYC",">=","P");
		
		if (dloop==1)  uf_stk = task.getSumUnfixStkPositionReport("NYC");
		
		if (dloop==1) ufs_Month1 = task.getSumPositionReport("unfixed_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"NYC","<=","S");
		if (dloop==2) ufs_Month2 = task.getSumPositionReport("unfixed_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"NYC","=","S");
		if (dloop==3) ufs_Month3 = task.getSumPositionReport("unfixed_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"NYC","=","S");
		if (dloop==4) ufs_Month4 = task.getSumPositionReport("unfixed_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"NYC","=","S");
		if (dloop==5) ufs_Month5 = task.getSumPositionReport("unfixed_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"NYC",">=","S");

		if (dloop==1) uftbf_Month1 = (ufp_Month1+uf_stk) - ufs_Month1;
		if (dloop==2) uftbf_Month2 = ufp_Month2 - ufs_Month2;
		if (dloop==3) uftbf_Month3 = ufp_Month3 - ufs_Month3;
		if (dloop==4) uftbf_Month4 = ufp_Month4 - ufs_Month4;
		if (dloop==5) uftbf_Month5 = ufp_Month5 - ufs_Month5;

		if (dloop==1) fp_Month1 = task.getSumPositionReport("pending_fix_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"NYC","<=","P");
		if (dloop==2) fp_Month2 = task.getSumPositionReport("pending_fix_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"NYC","=","P");
		if (dloop==3) fp_Month3 = task.getSumPositionReport("pending_fix_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"NYC","=","P");
		if (dloop==4) fp_Month4 = task.getSumPositionReport("pending_fix_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"NYC","=","P");
		if (dloop==5) fp_Month5 = task.getSumPositionReport("pending_fix_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"NYC",">=","P");

		if (dloop==1) f_stk = task.getSumfixStkPositionReport(1,"NYC");
		
		if (dloop==1) fs_Month1 = task.getSumPositionReport("fixed_tons-inv_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"NYC","<=","S");
		if (dloop==2) fs_Month2 = task.getSumPositionReport("fixed_tons-inv_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"NYC","=","S");
		if (dloop==3) fs_Month3 = task.getSumPositionReport("fixed_tons-inv_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"NYC","=","S");
		if (dloop==4) fs_Month4 = task.getSumPositionReport("fixed_tons-inv_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"NYC","=","S");
		if (dloop==5) fs_Month5 = task.getSumPositionReport("fixed_tons-inv_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"NYC",">=","S");

		if (dloop==1) npr_Month1 = (fp_Month1+f_stk) - fs_Month1;
		if (dloop==2) npr_Month2 = fp_Month2 - fs_Month2;
		if (dloop==3) npr_Month3 = fp_Month3 - fs_Month3;
		if (dloop==4) npr_Month4 = fp_Month4 - fs_Month4;
		if (dloop==5) npr_Month5 = fp_Month5 - fs_Month5;
	
		if (dloop==1) fup_Month1 = task.getSumPositionReport("tons","terminal_month","terminal_market","futures_contract",rs.getDate("month"),"NYC","<=","");
		if (dloop==2) fup_Month2 = task.getSumPositionReport("tons","terminal_month","terminal_market","futures_contract",rs.getDate("month"),"NYC","=","");
		if (dloop==3) fup_Month3 = task.getSumPositionReport("tons","terminal_month","terminal_market","futures_contract",rs.getDate("month"),"NYC","=","");
		if (dloop==4) fup_Month4 = task.getSumPositionReport("tons","terminal_month","terminal_market","futures_contract",rs.getDate("month"),"NYC","=","");
		if (dloop==5) fup_Month5 = task.getSumPositionReport("tons","terminal_month","terminal_market","futures_contract",rs.getDate("month"),"NYC",">=","");
	
		dloop=dloop+1;
	}
	
	rs.first();

%>

<%@include file="../header.jsp"%>

<style type="text/css">
<!--
.style13 {	font-family: Arial;
	font-size: 12px;
}
.style3 {font-weight: bold}
.style14 {font-family: Arial; font-size: 12px; font-weight: bold; }
-->
</style>

<script language="javascript">
function doReport()
{
	doTask(5);
}
</script>

<form action="" method="post" name="formMain" id="formMain">
  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
    <tr>
      <th align="left" scope="col"><img src="images/position_report.jpg" width="200" height="30"></th>
    </tr>
    <tr>
      <td><input type="hidden" name="uid"        id="uid"       value="<%=user.getuid()%>">
        <span class="style3">
        <input type="hidden" name="task_id"    id = "task_id"   value="0">
      </span></td>
    </tr>
    <tr>
      <td class="style14">&nbsp;</td>
    </tr>
    <tr>
      <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th width="83%" height="295" align="left" valign="top" scope="col"><table width="100%"  border="1" cellspacing="0" cellpadding="0" bordercolor="#EEEEEE">
            <tr bordercolor="#EEEEEE">
              <td colspan="3" align="center" class="style13 style3">&nbsp;</td>
              <td width="8%" align="center" valign="middle" bgcolor="#DDDDDD" class="style14"><strong><%=Utils.dateToStr(rs.getDate("month")).substring(3)%></strong></td>
			  <%rs.next();%>
              <td width="8%" align="center" valign="middle" bgcolor="#DDDDDD" class="style14"><strong><%=Utils.dateToStr(rs.getDate("month")).substring(3)%></strong></td>
			  <%rs.next();%>
              <td width="8%" align="center" valign="middle" bgcolor="#DDDDDD"><strong><span class="style14"><%=Utils.dateToStr(rs.getDate("month")).substring(3)%></span></strong></td>
			  <%rs.next();%>
              <td width="8%" align="center" valign="middle" bgcolor="#DDDDDD" class="style14"><strong><%=Utils.dateToStr(rs.getDate("month")).substring(3)%></strong></td>
			  <%rs.next();%>
              <td width="8%" align="center" valign="middle" bgcolor="#DDDDDD"><strong><span class="style14"><%=Utils.dateToStr(rs.getDate("month")).substring(3)%></span></strong></td>
			  <%rs.next();%>
              <td width="8%" align="center" valign="middle" bgcolor="#DDDDDD">&nbsp;</td>
			  <%rs.next();%>
              <td width="9%" align="center" valign="middle" bgcolor="#DDDDDD"><strong><span class="style14">Total</span></strong></td>
            </tr>
            <tr bordercolor="#EEEEEE">
              <td colspan="3" class="style13"><span class="style14"><u>Arabica</u></span></td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr bordercolor="#EEEEEE">
			  <td width="1%">&nbsp;</td>
              <td colspan="2" class="style13">Unfixed </td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr bordercolor="#EEEEEE">
              <td width="1%">&nbsp;</td>
              <td width="1%">&nbsp;</td>
              <td width="41%" class="style13">Purchase</td>
              <td align="right"><span class="style13"><%=task.FormatZero(ufp_Month1)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(ufp_Month2)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(ufp_Month3)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(ufp_Month4)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(ufp_Month5)%></span></td>
              <td align="right">&nbsp;</td>
              <td align="right"><span class="style13"><%=task.FormatZero(ufp_Month1+ufp_Month2+ufp_Month3+ufp_Month4+ufp_Month5)%></span></td>
            </tr>
            <tr bordercolor="#EEEEEE">
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td class="style13">Stock</td>
              <td align="right"><span class="style13"><%=task.FormatZero(uf_stk)%></span></td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td align="right"><span class="style13"><%=task.FormatZero(uf_stk)%></span></td>
            </tr>
            <tr bordercolor="#EEEEEE">
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td class="style13">Sales</td>
              <td align="right"><span class="style13"><%=task.FormatZero(ufs_Month1)%></span></td>
			  <td align="right"><span class="style13"><%=task.FormatZero(ufs_Month2)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(ufs_Month3)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(ufs_Month4)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(ufs_Month5)%></span></td>
              <td>&nbsp;</td>
              <td align="right"><span class="style13"><%=task.FormatZero(ufs_Month1+ufs_Month2+ufs_Month3+ufs_Month4+ufs_Month5)%></span></td>
            </tr>
            <tr bordercolor="#EEEEEE">
			  <td width="1%">&nbsp;</td>
              <td colspan="2" bordercolor="#EEEEEE" class="style13">&nbsp;Total Unfixed</td>
              <td align="right"><span class="style13 style3"><%=task.FormatZero(uftbf_Month1)%></span></td>
              <td align="right"><span class="style13 style3"><%=task.FormatZero(uftbf_Month2)%></span></td>
              <td align="right"><span class="style13 style3"><%=task.FormatZero(uftbf_Month3)%></span></td>
              <td align="right"><span class="style13 style3"><%=task.FormatZero(uftbf_Month4)%></span></td>
              <td align="right"><span class="style13 style3"><%=task.FormatZero(uftbf_Month5)%></span></td>
              <td align="right">&nbsp;</td>
              <td align="right"><span class="style13 style3"><%=task.FormatZero(uftbf_Month1+uftbf_Month2+uftbf_Month3+uftbf_Month4+uftbf_Month5)%></span></td>
            </tr>
            <tr bordercolor="#EEEEEE">
              <td>&nbsp;</td>
              <td colspan="2" class="style13">&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr bordercolor="#EEEEEE">
			  <td width="1%">&nbsp;</td>
              <td colspan="2" class="style13">Fixed</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr bordercolor="#EEEEEE">
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td class="style13">Purchase</td>
              <td align="right"><span class="style13"><%=task.FormatZero(fp_Month1)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(fp_Month2)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(fp_Month3)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(fp_Month4)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(fp_Month5)%></span></td>
              <td align="right"><span class="style13">&nbsp;</span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(fp_Month1+fp_Month2+fp_Month3+fp_Month4+fp_Month5)%></span></td>
            </tr>
            <tr bordercolor="#EEEEEE">
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td class="style13">Stock</td>
              <td align="right"><span class="style13"><%=task.FormatZero(f_stk)%></span></td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right"><span class="style13"><%=task.FormatZero(f_stk)%></span></td>
            </tr>
            <tr bordercolor="#EEEEEE">
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td class="style13">Sales</td>
              <td align="right"><span class="style13"><%=task.FormatZero(fs_Month1)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(fs_Month2)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(fs_Month3)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(fs_Month4)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(fs_Month5)%></span></td>
              <td align="right"><span class="style13">&nbsp;</span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(fs_Month1+fs_Month2+fs_Month3+fs_Month4+fs_Month5)%></span></td>
            </tr>
            <tr bordercolor="#EEEEEE">
			  <td width="1%">&nbsp;</td>
              <td colspan="2" bordercolor="#EEEEEE" class="style13">&nbsp;Total Fixed</td>
              <td align="right" class="style13 style3"><%=task.FormatZero(npr_Month1)%></td>
              <td align="right" class="style13 style3"><%=task.FormatZero(npr_Month2)%></td>
              <td align="right" class="style13 style3"><%=task.FormatZero(npr_Month3)%></td>
              <td align="right" class="style13 style3"><%=task.FormatZero(npr_Month4)%></td>
              <td align="right" class="style13 style3"><%=task.FormatZero(npr_Month5)%></td>
              <td align="right"><strong><span class="style13">&nbsp;</span></strong></td>
              <td align="right" class="style13 style3"><%=task.FormatZero(npr_Month1+npr_Month2+npr_Month3+npr_Month4+npr_Month5)%></td>
            </tr>
            <tr bordercolor="#EEEEEE">
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr bordercolor="#888888">
			<td width="1%" bordercolor="#EEEEEE">&nbsp;</td>
              <td colspan="2" bordercolor="#EEEEEE" class="style13">&nbsp;<strong>Net Differential Risk </strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero(uftbf_Month1 + npr_Month1)%></span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero(uftbf_Month2 + npr_Month2)%></span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero(uftbf_Month3 + npr_Month3)%></span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero(uftbf_Month4 + npr_Month4)%></span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero(uftbf_Month5 + npr_Month5)%></span></strong></td>
              <td align="right"><strong><span class="style13">&nbsp;</span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero((uftbf_Month1 + npr_Month1)+(uftbf_Month2 + npr_Month2)+(uftbf_Month3 + npr_Month3)+(uftbf_Month4 + npr_Month4)+(uftbf_Month5 + npr_Month5))%></span></strong></td>
            </tr>
            <tr bordercolor="#EEEEEE">
              <td colspan="3" bordercolor="#EEEEEE" class="style13">&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
            </tr>
            <tr bordercolor="#EEEEEE">
			<td width="1%">&nbsp;</td>
              <td colspan="2" bordercolor="#EEEEEE" class="style13 style3">&nbsp;Terminal Position</td>
              <td align="right"><strong><span class="style13"></span></strong></td>
              <td align="right"><strong><span class="style13"></span></strong></td>
              <td align="right"><strong><span class="style13"></span></strong></td>
              <td align="right"><strong><span class="style13"></span></strong></td>
              <td align="right"><strong><span class="style13"></span></strong></td>
              <td align="right"><strong><span class="style13"></span></strong></td>
              <td align="right"><strong><span class="style13"></span></strong></td>
            </tr>			
            <tr bordercolor="#888888">
              <td colspan="10" bordercolor="#EEEEEE">
            		<div id=scroll1 style="BORDER:0px ; OVERFLOW: auto; WIDTH: 100%; HEIGHT: 65px;">
              			<%@include file="trade.reports.position.brk.nyc.jsp"%>
          			</div>			  
			  </td>
            </tr>			
            <tr bordercolor="#888888">
			<td width="1%" bordercolor="#EEEEEE">&nbsp;</td>
              <td colspan="2" bordercolor="#EEEEEE"><strong><span class="style13">&nbsp;Net Terminal Position </span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero(fup_Month1)%></span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero(fup_Month2)%></span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero(fup_Month3)%></span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero(fup_Month4)%></span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero(fup_Month5)%></span></strong></td>
              <td align="right"><strong><span class="style13">&nbsp;</span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero((fup_Month1+fup_Month2+fup_Month3+fup_Month4+fup_Month5))%></span></strong></td>
            </tr>

            <tr bordercolor="#888888">
			<td width="1%" bordercolor="#EEEEEE">&nbsp;</td>
              <td colspan="2" bordercolor="#EEEEEE"><strong><span class="style13">&nbsp;Net Arabica Market Risk</span></strong></td>
              <td align="right" bgcolor="#EEEEEE"><strong><span class="style13"><%=task.FormatZero((npr_Month1 + fup_Month1))%></span></strong></td>
              <td align="right" bgcolor="#EEEEEE"><strong><span class="style13"><%=task.FormatZero((npr_Month2 + fup_Month2))%></span></strong></td>
              <td align="right" bgcolor="#EEEEEE"><strong><span class="style13"><%=task.FormatZero((npr_Month3 + fup_Month3))%></span></strong></td>
              <td align="right" bgcolor="#EEEEEE"><strong><span class="style13"><%=task.FormatZero((npr_Month4 + fup_Month4))%></span></strong></td>
              <td align="right" bgcolor="#EEEEEE"><strong><span class="style13"><%=task.FormatZero((npr_Month5 + fup_Month5))%></span></strong></td>
              <td align="right" bgcolor="#EEEEEE"><strong><span class="style13">&nbsp;</span></strong></td>
              <td align="right" bgcolor="#EEEEEE"><strong><span class="style13"><%=task.FormatZero((npr_Month1 + fup_Month1)+(npr_Month2 + fup_Month2)+(npr_Month3 + fup_Month3)+(npr_Month4 + fup_Month4)+(npr_Month5 + fup_Month5))%></span></strong></td>
            </tr>
          </table></th>
          </tr>
      </table></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td class="style14">&nbsp;</td>
    </tr>
	
<%
	dloop=1;
	float rbs_ufp_Month1 = 0;
	float rbs_ufp_Month2 = 0;
	float rbs_ufp_Month3 = 0;
	float rbs_ufp_Month4 = 0;
	float rbs_ufp_Month5 = 0;
	float rbs_ufp_Month6 = 0;
	
	float rbs_uf_stk = 0;
	
	float rbs_ufs_Month1 = 0;
	float rbs_ufs_Month2 = 0;
	float rbs_ufs_Month3 = 0;
	float rbs_ufs_Month4 = 0;
	float rbs_ufs_Month5 = 0;
	float rbs_ufs_Month6 = 0;

	float rbs_uftbf_Month1 = 0;
	float rbs_uftbf_Month2 = 0;
	float rbs_uftbf_Month3 = 0;
	float rbs_uftbf_Month4 = 0;
	float rbs_uftbf_Month5 = 0;
	float rbs_uftbf_Month6 = 0;
	
	float rbs_fp_Month1 = 0;
	float rbs_fp_Month2 = 0;
	float rbs_fp_Month3 = 0;
	float rbs_fp_Month4 = 0;
	float rbs_fp_Month5 = 0;
	float rbs_fp_Month6 = 0;
	
	float rbs_f_stk = 0;
	
	float rbs_fs_Month1 = 0;
	float rbs_fs_Month2 = 0;
	float rbs_fs_Month3 = 0;
	float rbs_fs_Month4 = 0;
	float rbs_fs_Month5 = 0;
	float rbs_fs_Month6 = 0;

	float rbs_npr_Month1 = 0;
	float rbs_npr_Month2 = 0;
	float rbs_npr_Month3 = 0;
	float rbs_npr_Month4 = 0;
	float rbs_npr_Month5 = 0;
	float rbs_npr_Month6 = 0;

	float rbs_ndf_Month1 = 0;
	float rbs_ndf_Month2 = 0;
	float rbs_ndf_Month3 = 0;
	float rbs_ndf_Month4 = 0;
	float rbs_ndf_Month5 = 0;
	float rbs_ndf_Month6 = 0;
	
	float rbs_fup_Month1 = 0;
	float rbs_fup_Month2 = 0;
	float rbs_fup_Month3 = 0;
	float rbs_fup_Month4 = 0;
	float rbs_fup_Month5 = 0;		  
	float rbs_fup_Month6 = 0;		  
		  
		  
	rs.close();
	rs   = task.GetTerminalMthList("LIFFE");
	rs.beforeFirst();
	
	while (rs.next())
	{
		if (dloop==1) rbs_ufp_Month1 = task.getSumPositionReport("pending_unfix_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"LIFFE","<=","P");
		if (dloop==2) rbs_ufp_Month2 = task.getSumPositionReport("pending_unfix_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"LIFFE","=","P");
		if (dloop==3) rbs_ufp_Month3 = task.getSumPositionReport("pending_unfix_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"LIFFE","=","P");
		if (dloop==4) rbs_ufp_Month4 = task.getSumPositionReport("pending_unfix_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"LIFFE","=","P");
		if (dloop==5) rbs_ufp_Month5 = task.getSumPositionReport("pending_unfix_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"LIFFE","=","P");
		if (dloop==6) rbs_ufp_Month6 = task.getSumPositionReport("pending_unfix_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"LIFFE",">=","P");

		if (dloop==1) rbs_uf_stk = task.getSumUnfixStkPositionReport("LIFFE");
		
		if (dloop==1) rbs_ufs_Month1 = task.getSumPositionReport("unfixed_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"LIFFE","<=","S");
		if (dloop==2) rbs_ufs_Month2 = task.getSumPositionReport("unfixed_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"LIFFE","=","S");
		if (dloop==3) rbs_ufs_Month3 = task.getSumPositionReport("unfixed_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"LIFFE","=","S");
		if (dloop==4) rbs_ufs_Month4 = task.getSumPositionReport("unfixed_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"LIFFE","=","S");
		if (dloop==5) rbs_ufs_Month5 = task.getSumPositionReport("unfixed_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"LIFFE","=","S");
		if (dloop==6) rbs_ufs_Month6 = task.getSumPositionReport("unfixed_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"LIFFE",">=","S");

		if (dloop==1) rbs_uftbf_Month1 = (rbs_ufp_Month1+rbs_uf_stk) - rbs_ufs_Month1;
		if (dloop==2) rbs_uftbf_Month2 = rbs_ufp_Month2 - rbs_ufs_Month2;
		if (dloop==3) rbs_uftbf_Month3 = rbs_ufp_Month3 - rbs_ufs_Month3;
		if (dloop==4) rbs_uftbf_Month4 = rbs_ufp_Month4 - rbs_ufs_Month4;
		if (dloop==5) rbs_uftbf_Month5 = rbs_ufp_Month5 - rbs_ufs_Month5;
		if (dloop==6) rbs_uftbf_Month6 = rbs_ufp_Month6 - rbs_ufs_Month6;

		if (dloop==1) rbs_fp_Month1 = task.getSumPositionReport("pending_fix_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"LIFFE","<=","P");
		if (dloop==2) rbs_fp_Month2 = task.getSumPositionReport("pending_fix_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"LIFFE","=","P");
		if (dloop==3) rbs_fp_Month3 = task.getSumPositionReport("pending_fix_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"LIFFE","=","P");
		if (dloop==4) rbs_fp_Month4 = task.getSumPositionReport("pending_fix_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"LIFFE","=","P");
		if (dloop==5) rbs_fp_Month5 = task.getSumPositionReport("pending_fix_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"LIFFE","=","P");
		if (dloop==6) rbs_fp_Month6 = task.getSumPositionReport("pending_fix_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"LIFFE",">=","P");
		
		if (dloop==1) rbs_f_stk = task.getSumfixStkPositionReport(2,"LIFFE");		
		
		if (dloop==1) rbs_fs_Month1 = task.getSumPositionReport("fixed_tons-inv_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"LIFFE","<=","S");
		if (dloop==2) rbs_fs_Month2 = task.getSumPositionReport("fixed_tons-inv_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"LIFFE","=","S");
		if (dloop==3) rbs_fs_Month3 = task.getSumPositionReport("fixed_tons-inv_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"LIFFE","=","S");
		if (dloop==4) rbs_fs_Month4 = task.getSumPositionReport("fixed_tons-inv_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"LIFFE","=","S");
		if (dloop==5) rbs_fs_Month5 = task.getSumPositionReport("fixed_tons-inv_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"LIFFE","=","S");
		if (dloop==6) rbs_fs_Month6 = task.getSumPositionReport("fixed_tons-inv_tons","terminal_month","terminal_market","contracts",rs.getDate("month"),"LIFFE",">=","S");
		
		
		if (dloop==1) rbs_npr_Month1 = (rbs_fp_Month1+rbs_f_stk) - rbs_fs_Month1;
		if (dloop==2) rbs_npr_Month2 = rbs_fp_Month2 - rbs_fs_Month2;
		if (dloop==3) rbs_npr_Month3 = rbs_fp_Month3 - rbs_fs_Month3;
		if (dloop==4) rbs_npr_Month4 = rbs_fp_Month4 - rbs_fs_Month4;
		if (dloop==5) rbs_npr_Month5 = rbs_fp_Month5 - rbs_fs_Month5;
		if (dloop==6) rbs_npr_Month6 = rbs_fp_Month6 - rbs_fs_Month6;		
		
		if (dloop==1) rbs_fup_Month1 = task.getSumPositionReport("tons","terminal_month","terminal_market","futures_contract",rs.getDate("month"),"LIFFE","<=","");
		if (dloop==2) rbs_fup_Month2 = task.getSumPositionReport("tons","terminal_month","terminal_market","futures_contract",rs.getDate("month"),"LIFFE","=","");
		if (dloop==3) rbs_fup_Month3 = task.getSumPositionReport("tons","terminal_month","terminal_market","futures_contract",rs.getDate("month"),"LIFFE","=","");
		if (dloop==4) rbs_fup_Month4 = task.getSumPositionReport("tons","terminal_month","terminal_market","futures_contract",rs.getDate("month"),"LIFFE","=","");
		if (dloop==5) rbs_fup_Month5 = task.getSumPositionReport("tons","terminal_month","terminal_market","futures_contract",rs.getDate("month"),"LIFFE","=","");
		if (dloop==6) rbs_fup_Month6 = task.getSumPositionReport("tons","terminal_month","terminal_market","futures_contract",rs.getDate("month"),"LIFFE",">=","");
	
		dloop=dloop+1;
	}	
	rs.first();
%>		  
	
	
    <tr>
          <th width="83%" height="295" align="left" valign="top" scope="col"><table width="100%"  border="1" cellspacing="0" cellpadding="0" bordercolor="#EEEEEE">
            <tr bordercolor="#EEEEEE">
              <td colspan="3" align="center" class="style14">&nbsp;</td>
              <td width="8%" align="center" valign="middle" bordercolor="#EEEEEE" bgcolor="#DDDDDD"><strong><span class="style14"><%=Utils.dateToStr(rs.getDate("month")).substring(3)%></span></strong></td>
			  <%rs.next();%>
              <td width="8%" align="center" valign="middle" bgcolor="#DDDDDD" class="style14"><strong><%=Utils.dateToStr(rs.getDate("month")).substring(3)%></strong></td>
			  <%rs.next();%>
              <td width="8%" align="center" valign="middle" bgcolor="#DDDDDD"><strong><span class="style14"><%=Utils.dateToStr(rs.getDate("month")).substring(3)%></span></strong></td>
			  <%rs.next();%>
              <td width="8%" align="center" valign="middle" bgcolor="#DDDDDD" class="style14"><strong><%=Utils.dateToStr(rs.getDate("month")).substring(3)%></strong></td>
			  <%rs.next();%>
              <td width="8%" align="center" valign="middle" bgcolor="#DDDDDD"><strong><span class="style14"><%=Utils.dateToStr(rs.getDate("month")).substring(3)%></span></strong></td>
			  <%rs.next();%>
              <td width="8%" align="center" valign="middle" bgcolor="#DDDDDD" class="style14"><strong><%=Utils.dateToStr(rs.getDate("month")).substring(3)%></strong></td>
			  <%rs.next();%>
              <td width="9%" align="center" valign="middle" bgcolor="#DDDDDD"><strong><span class="style14">Total</span></strong></td>
            </tr>
            <tr bordercolor="#EEEEEE">
              <td colspan="3" class="style13"><span class="style14">Robusta</span></td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr bordercolor="#EEEEEE">
			  <td width="1%">&nbsp;</td>
              <td colspan="2" class="style13">Unfixed </td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr bordercolor="#EEEEEE">
              <td width="1%">&nbsp;</td>
              <td width="1%">&nbsp;</td>
              <td width="41%" class="style13">Purchase</td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_ufp_Month1)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_ufp_Month2)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_ufp_Month3)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_ufp_Month4)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_ufp_Month5)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_ufp_Month6)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_ufp_Month1+rbs_ufp_Month2+rbs_ufp_Month3+rbs_ufp_Month4+rbs_ufp_Month5+rbs_ufp_Month6)%></span></td>
            </tr>
            <tr bordercolor="#EEEEEE">
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td class="style13">Stock</td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_uf_stk)%></span></td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_uf_stk)%></span></td>
            </tr>
            <tr bordercolor="#EEEEEE">
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td class="style13">Sales</td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_ufs_Month1)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_ufs_Month2)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_ufs_Month3)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_ufs_Month4)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_ufs_Month5)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_ufs_Month6)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_ufs_Month1+rbs_ufs_Month2+rbs_ufs_Month3+rbs_ufs_Month4+rbs_ufs_Month5+rbs_ufs_Month6)%></span></td>
            </tr>
            <tr bordercolor="#EEEEEE">
			  <td width="1%" bordercolor="#EEEEEE">&nbsp;</td>
              <td colspan="2" bordercolor="#EEEEEE" class="style13">&nbsp;Total Unfixed</td>
              <td align="right"><span class="style14"><%=task.FormatZero(rbs_uftbf_Month1)%></span></td>
              <td align="right"><span class="style14"><%=task.FormatZero(rbs_uftbf_Month2)%></span></td>
              <td align="right"><span class="style14"><%=task.FormatZero(rbs_uftbf_Month3)%></span></td>
              <td align="right"><span class="style14"><%=task.FormatZero(rbs_uftbf_Month4)%></span></td>
              <td align="right"><span class="style14"><%=task.FormatZero(rbs_uftbf_Month5)%></span></td>
              <td align="right"><span class="style14"><%=task.FormatZero(rbs_uftbf_Month6)%></span></td>
              <td align="right"><span class="style14"><%=task.FormatZero(rbs_uftbf_Month1+rbs_uftbf_Month2+rbs_uftbf_Month3+rbs_uftbf_Month4+rbs_uftbf_Month5+rbs_uftbf_Month6)%></span></td>
            </tr>
            <tr bordercolor="#EEEEEE">
              <td bordercolor="#EEEEEE">&nbsp;</td>
              <td colspan="2" class="style13">&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr bordercolor="#EEEEEE">
			  <td width="1%" bordercolor="#EEEEEE">&nbsp;</td>
              <td colspan="2" class="style13">Fixed</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr bordercolor="#EEEEEE">
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td class="style13">Purchase</td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_fp_Month1)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_fp_Month2)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_fp_Month3)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_fp_Month4)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_fp_Month5)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_fp_Month6)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_fp_Month1+rbs_fp_Month2+rbs_fp_Month3+rbs_fp_Month4+rbs_fp_Month5+rbs_fp_Month6)%></span></td>
            </tr>
            <tr bordercolor="#EEEEEE">
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td class="style13">Stock</td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_f_stk)%></span></td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_f_stk)%></span></td>
            </tr>
            <tr bordercolor="#EEEEEE">
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td class="style13">Sales</td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_fs_Month1)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_fs_Month2)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_fs_Month3)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_fs_Month4)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_fs_Month5)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_fs_Month6)%></span></td>
              <td align="right"><span class="style13"><%=task.FormatZero(rbs_fs_Month1+rbs_fs_Month2+rbs_fs_Month3+rbs_fs_Month4+rbs_fs_Month5+rbs_fs_Month6)%></span></td>
            </tr>
            <tr bordercolor="#EEEEEE">
			  <td width="1%" bordercolor="#EEEEEE">&nbsp;</td>
              <td colspan="2" bordercolor="#EEEEEE" class="style13">&nbsp;Total Fixed</td>
              <td align="right"><span class="style14"><%=task.FormatZero(rbs_npr_Month1)%></span></td>
              <td align="right"><span class="style14"><%=task.FormatZero(rbs_npr_Month2)%></span></td>
              <td align="right"><span class="style14"><%=task.FormatZero(rbs_npr_Month3)%></span></td>
              <td align="right"><span class="style14"><%=task.FormatZero(rbs_npr_Month4)%></span></td>
              <td align="right"><span class="style14"><%=task.FormatZero(rbs_npr_Month5)%></span></td>
              <td align="right"><span class="style14"><%=task.FormatZero(rbs_npr_Month6)%></span></td>
              <td align="right"><span class="style14"><%=task.FormatZero(rbs_npr_Month1+rbs_npr_Month2+rbs_npr_Month3+rbs_npr_Month4+rbs_npr_Month5+rbs_npr_Month6)%></span></td>
            </tr>
            <tr bordercolor="#EEEEEE">
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr bordercolor="#888888">
			  <td width="1%" bordercolor="#EEEEEE">&nbsp;</td>
              <td colspan="2" bordercolor="#EEEEEE"><strong><span class="style13">&nbsp;Net Differential Risk </span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero(rbs_uftbf_Month1 + rbs_npr_Month1)%></span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero(rbs_uftbf_Month2 + rbs_npr_Month2)%></span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero(rbs_uftbf_Month3 + rbs_npr_Month3)%></span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero(rbs_uftbf_Month4 + rbs_npr_Month4)%></span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero(rbs_uftbf_Month5 + rbs_npr_Month5)%></span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero(rbs_uftbf_Month6 + rbs_npr_Month6)%></span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero((rbs_uftbf_Month1 + rbs_npr_Month1)+(rbs_uftbf_Month2 + rbs_npr_Month2)+(rbs_uftbf_Month3 + rbs_npr_Month3)+(rbs_uftbf_Month4 + rbs_npr_Month4)+(rbs_uftbf_Month5 + rbs_npr_Month5)+(rbs_uftbf_Month6 + rbs_npr_Month6))%></span></strong></td>
            </tr>
            <tr bordercolor="#EEEEEE">
              <td bordercolor="#EEEEEE">&nbsp;</td>
              <td colspan="2" bordercolor="#EEEEEE">&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
              <td align="right">&nbsp;</td>
            </tr>
            <tr bordercolor="#EEEEEE">
			<td width="1%" bordercolor="#EEEEEE">&nbsp;</td>
              <td colspan="2" bordercolor="#EEEEEE"><strong><span class="style13">&nbsp;</span></strong><span class="style13 style3">Terminal Position</span></td>
              <td align="right"><strong><span class="style13"></span></strong></td>
              <td align="right"><strong><span class="style13"></span></strong></td>
              <td align="right"><strong><span class="style13"></span></strong></td>
              <td align="right"><strong><span class="style13"></span></strong></td>
              <td align="right"><strong><span class="style13"></span></strong></td>
              <td align="right"><strong><span class="style13"></span></strong></td>
              <td align="right"><strong><span class="style13"></span></strong></td>
            </tr>			
            <tr bordercolor="#888888">
              <td colspan="10" bordercolor="#EEEEEE">
            		<div id=scroll1 style="BORDER:0px ; OVERFLOW: auto; WIDTH: 100%; HEIGHT: 65px;">
              			<%@include file="trade.reports.position.brk.liffe.jsp"%>
          			</div>			  
			  </td>
            </tr>			
            <tr bordercolor="#888888">
			<td width="1%" bordercolor="#EEEEEE">&nbsp;</td>
              <td colspan="2" bordercolor="#EEEEEE"><strong><span class="style13">&nbsp;Net Terminal Position </span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero(rbs_fup_Month1)%></span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero(rbs_fup_Month2)%></span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero(rbs_fup_Month3)%></span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero(rbs_fup_Month4)%></span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero(rbs_fup_Month5)%></span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero(rbs_fup_Month6)%></span></strong></td>
              <td align="right"><strong><span class="style13"><%=task.FormatZero(rbs_fup_Month1+rbs_fup_Month2+rbs_fup_Month3+rbs_fup_Month4+rbs_fup_Month5+rbs_fup_Month6)%></span></strong></td>
            </tr>
            <tr bordercolor="#888888">
			<td width="1%" bordercolor="#EEEEEE">&nbsp;</td>
              <td colspan="2" bordercolor="#EEEEEE"><strong><span class="style13">&nbsp;Net Robusta Market Risk</span></strong></td>
              <td align="right" bgcolor="#EEEEEE"><strong><span class="style13"><%=task.FormatZero(rbs_npr_Month1 + rbs_fup_Month1)%></span></strong></td>
              <td align="right" bgcolor="#EEEEEE"><strong><span class="style13"><%=task.FormatZero(rbs_npr_Month2 + rbs_fup_Month2)%></span></strong></td>
              <td align="right" bgcolor="#EEEEEE"><strong><span class="style13"><%=task.FormatZero(rbs_npr_Month3 + rbs_fup_Month3)%></span></strong></td>
              <td align="right" bgcolor="#EEEEEE"><strong><span class="style13"><%=task.FormatZero(rbs_npr_Month4 + rbs_fup_Month4)%></span></strong></td>
              <td align="right" bgcolor="#EEEEEE"><strong><span class="style13"><%=task.FormatZero(rbs_npr_Month5 + rbs_fup_Month5)%></span></strong></td>
              <td align="right" bgcolor="#EEEEEE"><strong><span class="style13"><%=task.FormatZero(rbs_npr_Month6 + rbs_fup_Month6)%></span></strong></td>
              <td align="right" bgcolor="#EEEEEE"><strong><span class="style13"><%=task.FormatZero((rbs_npr_Month1 + rbs_fup_Month1)+(rbs_npr_Month2 + rbs_fup_Month2)+(rbs_npr_Month3 + rbs_fup_Month3)+(rbs_npr_Month4 + rbs_fup_Month4)+(rbs_npr_Month5 + rbs_fup_Month5)+(rbs_npr_Month6 + rbs_fup_Month6))%></span></strong></td>
            </tr>
          </table></th>
    </tr>
    <tr>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td align="right"><img src="images/report.jpg" width="55" height="18" onClick="doReport()"></td>
    </tr>
  </table>
</form>
<%@include file="../footer.jsp"%>
